<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	
	<title>利客送社区连锁超市</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <link rel="apple-touch-icon-precomposed" href="__ROOT__/statics/mobile/images/icon.png"/>
	<link rel="stylesheet" type="text/css" href="__ROOT__/statics/mobile/css/bootstrap-custom.css"  />
	<link rel="stylesheet" type="text/css" href="__ROOT__/statics/mobile/css/main.css"  />
	<link rel="shortcut icon" href="__ROOT__/statics/mobile/images/favicon.ico">
	<script type="text/javascript" src="__ROOT__/statics/mobile/scripts/appframework.min.js"></script>
	<block name="script_header"></block>
</head>
<body>
<div class="pageHeaderBody">
	<block name="page_header"><include file="Public:header"/></block>
	<div class="container clearfix">
		<block name="page_body"></block>
		<div class="push"></div><!-- 固定底部用 -->
	</div>
</div>
<block name="page_footer">
	<include file="Public:footer"/>
</block>
<block name="script_footer"></block>
<script type="text/javascript">
$(document).ready(function(){
	initShopInfo();
})
function initShopInfo(){
	var shop_info = "{:cookie('COK_SHOP')}";
	if(shop_info!=''){
		var shop_info_ary = shop_info.split("|");
		$("#shopAddress").html(shop_info_ary[2]);
	}
}

//写cookies
function setCookie(name,value){
	var Days = 30;
	var exp = new Date(); 
	exp.setTime(exp.getTime() + Days*24*60*60*1000);
	document.cookie = name + "="+ value + ";expires=" + exp.toGMTString();
}
  
 //读cookie 
 function getCookie(name){
	var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)");
	if(arr=document.cookie.match(reg)){
		return (arr[2]);
	}else{
		return null;
	}
 }
 
//删除cookies
function delCookie(name){
    var exp = new Date();
    exp.setTime(exp.getTime() - 1);
    var cval=getCookie(name);
    if(cval!=null){
    	document.cookie= name + "="+cval+";expires="+exp.toGMTString();
    }
}
function redirect(url,isNewWin) {
	var arg0 = (arguments[0]!=undefined) ? arguments[0] : "#"; 
	var arg1 = (arguments[1]!=undefined) ? arguments[1] : false;
	if(arg1){
		window.open(url);
	}else{
		location.href = url;		
	}
}

function searchProd(cate){
	location.href = "/product/index/cate_code/"+cate+".html";
}
</script>
</body>
</html>